SlkStore.IsInstructor Method

Returns true if the current user is an instructor on a given SPWeb, false if not.

Parent Type: SlkStore

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public bool IsInstructor (
SPWeb spWeb

)

Parameters

spWeb

SPWeb that should be checked.

Exceptions
Exception type Condition
InvalidOperationException

spWeb is not in the SPSite that this SlkStore is associated with.

UnauthorizedAccessException

The user is not a Reader on spWeb.

Remarks

Security:  Fails if the current user doesn't have SharePoint "Reader" access.